package oop9;

import oop6.pet2.Dog;
import oop6.pet2.Penguin;
import oop6.pet2.Pet;
import oop7.Tiger;

import java.lang.management.MonitorInfo;

/**
 * @author oldliu
 * @since 1.0
 */
//宠物市场
public class PetMarket {
    private String name;
    public PetMarket(String n){
        this.name=n;
    }
    //出售宠物
    public Pet sell(int money){
        if(money>1000000){
            return new Tiger("翠花",3,"母",100,88);
        }
        if(money>10000){
            return new Penguin("小蓝企鹅");
        }
        if(money>500){
            return new Dog("大黄",3,"公",100,100,"田园犬");
        }
        return null;
    }
}
